import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 数据处理规则详情 */
export const handel_rule_info = (data?: object) => {
  return http.request<any>("get", baseUrlApi("handel/handel_rule_info"), { data });
};

/** 数据处理规则修改 */
export const handel_rule_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("handel/handel_rule_save"), { data });
};

/** 新手教程 */
export const beginnertutorial_info = (data?: object) => {
  return http.request<any>("get", baseUrlApi("beginnertutorial/beginnertutorial_info"), { data });
};

/** 客户跟进概览 */
export const statistics_customer = (data?: object) => {
  return http.request<any>("post", baseUrlApi("statistics/statistics_customer"), { data });
};

/** 成交产品概览 */
export const statistics_goods = (data?: object) => {
  return http.request<any>("get", baseUrlApi("statistics/statistics_goods"), { data });
};

/** 客户统计 */
export const statistics_performance = (data?: object) => {
  return http.request<any>("post", baseUrlApi("statistics/performance"), { data });
};

/** 员工业绩 */
export const statistics_call = (data?: object) => {
  return http.request<any>("post", baseUrlApi("statistics/call"), { data });
};

/** 获取当天整体群呼特征 */
export const callReport_wholeByDay = (data?: object) => {
  return http.request<any>("post", baseUrlApi("callReport/wholeByDay"), { data });
};

/** 获取席位count数 */
export const crmSeat_getCount = (data?: object) => {
  return http.request<any>("post", baseUrlApi("crmSeat/getCount"), { data });
};